import Vue from 'vue'
import Vuex from 'vuex'

import car from './modules/car'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: { car },
  plugins: [
    createPersistedState({
      key: '京东商城',
      paths: ['car']
    })
  ]
})
